﻿using System;
using System.ComponentModel;

namespace Foundation.Spell
{
    [Serializable]
    public class SpellService
    {
        public string Name { get; set; }
        public string Url { get; set; }
        public string Proxy { get; set; }
        public string Post { get; set; }
        public string Get { get; set; }
        public string ErrorNodeName { get; set; }
        public string OffsetAttributeName { get; set; }
        public string LenghtAttributeName { get; set; }
        public string ContentType { get; set; }
        public string HintNode { get; set; }
        public string Method { get; set; }
        public bool IgnoreEmptyErrors { get; set; }
        public int MinQueryStringLenght = 1024;
        public int MaxGetQueryStringLenght = 1024;
        public int MaxCacheSize = 512;
        public int QueryTimeout = 27;
        public bool Use { get; set; }
        public string WholeWordRegexPattern { get; set; }

        public string DictionaryFileName { get; set; }
        [DefaultValue(true)] public bool UseDictionaryFile { get; set; }
    }
}
